package com.ssm.gbq.mapper;

import com.ssm.gbq.model.Doctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DoctorMapper {
    int countByExample(@Param("nameOrPhone")String nameOrPhone);
    List<Doctor> selectByLimitPage(@Param("nameOrPhone")String nameOrPhone, @Param("offset") int offset, @Param("limit") int pageSize);
    Doctor selectByPrimaryKey(Integer id);
    List<Doctor> searchDoctor(@Param("nameOrPhone")String nameOrPhone);
    int insert(Doctor record);
    int deleteByPrimaryKey(List<Integer> ids);
    int updateByPrimaryKeySelective(Doctor record);
}